<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri = "http://java.sun.com/jstl/core" prefix = "c"%>
<link rel="stylesheet" type="text/css" href="style/admin.css" />

<div class="body">


<h1><img src="images/icons/newsletter.png" width="45"/><s:text name="NEWSLETTER"/></h1>
	<hr/>
	<div class="clear"></div>
	
	
	<form method="POST" action="sendNewsletter">
	
		<p>Entrer le contenu de la newsletter:</p>
		<s:textfield name="newsletterTitle" label="Titre" size="45"/><br/><br/>
		<s:textarea name="newsletterContent" style="height:300px; width:100%;"/>
		<s:if test="#session.errorMsg!=null">
					<div style="color:red; margin-top:20px;">						
						<s:property value="%{#session.errorMsg}" escape="false"/>
					</div>	
		</s:if>
			<s:submit value="Envoyer"/>
		<s:if test="#session.successMsg!=null">
					<div style="color:green; margin-top:20px;">						
						<s:property value="%{#session.successMsg}" escape="false"/>
					</div>	
		<a class="link" style="margin-left:550px;" href="<s:url action="initHome"/>"> <img src="images/icons/home.png" width="45"/> Retour home</a>
		</s:if>
	</form>
</div>
